<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class ProductRequest extends FormRequest
{
    public function authorize()
    {
        return auth('admin')->check();
    }
    public function rules()
    {
        return [
            'extraPrice'=>'required|numeric',
            'inventory'=>'required',
        ];
    }
}
